<template>
    <div>
        <SearchPop
                :label-array="labelArray"
                :column-array="columnArray"
                v-model="text"
                url="/sysUser/selectList"
                @callback="callback"
        />
    </div>
</template>

<script>

    import SearchPop from "./Home";
    export default {
        name: "SearchPopTest",
        components: {
            SearchPop
        },
        data() {
            return {
                text: '',
                labelArray: [
                    '编号',
                    '名称',
                    '年龄',
                    '邮箱',
                    '地址',
                ],
                columnArray: [
                    'id',
                    'name',
                    'age',
                    'email',
                    'address',
                ],
            }
        },
        methods: {
            callback(data) {
                this.$notify({
                    title: '成功',
                    message: data,
                    type: 'success'
                });
            }
        }
    }
</script>

<style scoped>

</style>